﻿<html>
<head>
<meta http-equiv="content-type" content="text/xml; charset=UTF-8"> 
</head>
<body>
<h2>问题搜索</h2>
<a href = "/CodeIgniter/ask">问答首页</a>&rarr;搜索"<?php echo $_SESSION['title']; ?>"
<table border=1>
		<tr>
			<td>问题</td>
			<td width="80"><center>类型</center></td>
			<td width="150"><center>提问时间</center></td>
			<td>回答</td>
			<td>悬赏</td>
		</tr>
		
	  	<tr>
		    <? foreach($info->result() as $row):?>
					<td><a href="/CodeIgniter/questions/<?=$row->id ?>"><?=$row->title ?></a></td>
					<td><center><a href="/CodeIgniter/questions/ctags/<?=$row->cid ?>"><?=$row->cname ?></a></center></td>
					<td><center><?=$row->postdate ?></center></td>
					<td><center><?=$row->answercount ?></center></td>
					<td><center><?=$row->price ?></center></td>
		</tr>
			<? endforeach; ?>
            <?php //echo $this->table->generate($results); ?>
			<?php echo  $page_links ; ?>
			<?php //echo $this->pagination->create_links(); ?>
</table>
</body>
</html>